package com.yawn;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;

/**
 * @author Created by yawn on 2017-12-09 16:48
 */
public class TestConfig {

    public static void main(String[] args) {
        ProcessEngineConfiguration configBean3 = ProcessEngineConfiguration
                .createProcessEngineConfigurationFromResource("activiti.cfg.xml", "configBean3");
        ProcessEngine engine = configBean3.buildProcessEngine();

        RepositoryService repository = engine.getRepositoryService();
        repository.createDeployment().addClasspathResource("test2.bpmn").deploy();

        engine.close();
    }
}
